﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FrameworkManapro.BusinessModel;

namespace GMAC.ReportingSystem.Business.Entities
{
    //-------------------------------------------------
    /// <summary>
    /// Ricardo Recaredo (31/03/2011)
    /// 
    /// Insurance Companie Class
    /// </summary>
    //-------------------------------------------------

    [Serializable]
    [DbProcedures(Insert = "procInsuranceCompanyInsert", Update = "procInsuranceCompanyUpdate", Delete = "procInsuranceCompanyDelete")]
    public class InsuranceCompany : BusinessEntity
    {
        [EntityPrimaryKey]
        [TableColumn]
        [DbParameter(0, 1, 1)]
        public int Id { get; set; }

        [DbParameter(1, 2, 0)]
        public string Name { get; set; }

        [DbParameter(2, 3, 0)]
        public GeneralEnumTypes.Status Status { get; set; } 
    }

    public class InsuranceCompanyCollection : List<InsuranceCompany>
    {
        public int TotalResults { get; set; }
    }
}
